<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html">
    <p>Добавление/Редактирование пользователя</p>
    <h:outputText value="#{userId}"/>
    <form id="#{method}_userForm" method="post" action="#{request.contextPath}/admin/index.jsf#ui-tabs-2">
        <h:panelGrid columns="2">
            <h:outputLabel for="#{method}_userId" value="" styleClass="margin1"/>
            <h:inputHidden id="#{method}_userId" value=""/>
            <h:outputLabel id="#{method}_codeLabel" value=":" for="#{method}_userCode"
                           styleClass="margin1"/>
            <h:inputText id="#{method}_userCode" value=""/>
            <h:outputLabel id="#{method}_descriptionLabel" value=":"
                           for="#{method}_userDescription"
                           styleClass="margin1"/>
            <h:inputText id="#{method}_userDescription" value=""/>
        </h:panelGrid>
        <h:panelGroup id="#{method}_submit" styleClass="margin1 centerAlign" layout="block">
            <h:commandButton id="#{method}_userEdit" value="#{msgs['save']}" styleClass="margin2p"
                             action="#"/>
            <input type="button" id="#{method}_userCancel" value="#{msgs['cancel']}" class="margin2p"
                             onclick="removeDialog()"/>
        </h:panelGroup>
        <h:panelGroup id="#{method}_usersErrors" styleClass="padding1" layout="block">
            <h:messages id="#{method}_userErrorMessages" errorStyle="color: red" warnStyle="color: blue;" infoStyle="color: green;"/>
        </h:panelGroup>
    </form>
</div>